Nevron Open Vision Documentation
Nevron.Nov Namespace / NPromise<TResult> Class
Properties Methods


In This Topic
    NPromise<TResult> Class Members
    In This Topic

    The following tables list the members exposed by NPromise<TResult>.

    Public Constructors
     NameDescription
    Public ConstructorDefault constructor  
    Top
    Public Properties
     NameDescription
    Public PropertyGets the promise exception. Valid only if the the promise is rejected.  
    Public PropertyGets whether the promise has been fulfilled (succeeded).  
    Public PropertyGets whether the promise is pending (has not been resolved yet).  
    Public PropertyGets whether the promise has been rejected (failed).  
    Public PropertyGets whether the promise has been resolved (was fulfilled or rejected).  
    Public PropertyGets the promise result. Valid only if the promise is fulfilled.  
    Public PropertyGets the promise state  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Creates a promise that casts the objects array result of the specified promise, to an array of TResult objects type.  
    Public Methodstatic (Shared in Visual Basic)Creates a promise that casts the object result of the specified promise, to the TResult type.  
    Public MethodAdds a rejected handler for this promise.  
    Public MethodAdds a rejected handler for this promise and returns an undefined promise  
    Public Methodstatic (Shared in Visual Basic)Creates a safe promise with the specified body  
    Public Methodstatic (Shared in Visual Basic)Creates a fulfilled promise with the given result.  
    Public Methodstatic (Shared in Visual Basic)Creates a rejected promise with the given exception.  
    Public MethodAdds a handler which is executed when the promise is either fulfilled or rejected  
    Public MethodAdds a handler which is executed when the promise is either fulfilled or rejected  
    Public MethodOverloaded. Fulfills the promise with specified result. Automatically decides whether to call the promise handlers immediately or asyncrhonously.  
    Public MethodGets the promise exception, if it is rejected.  
    Public MethodGets the promise result, if it is fullfilled.  
    Public MethodOverloaded. Rejects the promise with the specified exception.  
    Public MethodOverloaded. Adds a succeeded handler for this promise  
    Public MethodOverloaded. Adds succeeded and failed handlers for this promise and returns a new promise, which is fulfilled when this promise is fulfilled.  
    Public MethodOverloaded. Adds succeeded and failed handlers for this promise and returns a new promise, which is fulfilled when this promise is fulfilled.  
    Top
    See Also